package com.zq.leave.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;


import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author baicun
 * @since 2020-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)

public class Vacate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @NotNull(message = "请假申请人不能为空")
    private String username;
    @NotNull(message = "请假申请人头像不能为空")
    private String avatar;
    @NotNull(message = "请假时间段不能为空")
    private String time;
    @NotNull(message = "请假原因不能为空")
    private String reason;
    @NotNull(message = "请假信息不能为空")
    private String info;
    @NotNull(message = "请假审批人为空")
    private String approver;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime created;

    private String backinfo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approved;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime confirmed;

    private String status;

    private Integer sign;


}
